package org.hxzon.tapestry5.util;

import org.apache.tapestry5.EventContext;

public class OneStringEventContext implements EventContext {

    private String path;

    public OneStringEventContext(String path) {
        this.path = path;
    }

    @SuppressWarnings("unchecked")
    public Object get(Class desiredType, int index) {
        return path;
    }

    public int getCount() {
        return 1;
    }

    public String[] toStrings() {
        return new String[] { path };
    }

}
